import { request } from '@/utils/request'

export function Login (phone) {
  return request({
    url: '/captcha/sent',
    params: {
      phone
    }
  })
}
export function Password (phone, password) {
  return request({
    url: `/login/cellphone?phone=${phone}&md5_password=${password}`
  })
}
export function Verification (phone, captcha) {
  return request({
    url: '/captcha/verify',
    params: {
      phone,
      captcha
    }
  })
}

export function User () {
  return request({
    url: '/user/account'
  })
}
